<template>
  <div id="productList">
    <product-list-header></product-list-header>
    <div v-if="showStyle === 'row'">
      <product-list-one ref="productListOne"></product-list-one>
    </div>
    <div v-else>
      <product-list-two ref="productListTwo"></product-list-two>
    </div>
  </div>
</template>

<script>
import productListOne from "./productListOne.page";
import productListTwo from "./productListTwo.page";
import productListHeader from "./productListHeader.c";
import { mapGetters } from "vuex";

export default {
  data() {
    return {};
  },
  computed: {
    ...mapGetters(["showStyle"])
  },
  components: {
    productListOne,
    productListTwo,
    productListHeader
  },
  methods: {},
  watch: {
    $route(curVal, oldVal) {},
  }
};
</script>

<style lang="scss">
@import "../../../assets/styles/color.scss";
#productList {
}
</style>
